package com.letfox.ad.service.relation.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.letfox.ad.dao.relation.ADPlanUnitDao;
import com.letfox.ad.model.relation.ADPlanUnit;
import com.letfox.ad.service.relation.ADPlanUnitService;

@Service
public class ADPlanUnitServiceImpl implements ADPlanUnitService {
	
	@Autowired
	private ADPlanUnitDao adPlanRlUnitDao;

	@Override
	public int deleteByPrimaryKey(Long id) {
		return adPlanRlUnitDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ADPlanUnit record) {
		return adPlanRlUnitDao.insert(record);
	}

	@Override
	public ADPlanUnit selectByPrimaryKey(Long id) {
		return adPlanRlUnitDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKey(ADPlanUnit record) {
		return adPlanRlUnitDao.updateByPrimaryKey(record);
	}

}
